from . import views
from django.conf.urls import url



urlpatterns = [

    url(r'^register/$', views.RegisterView.as_view(), name="register"),
    url(r'^usernames/(?P<username>[a-zA-Z0-9_-]{5,20})/count/$',views.UsernameCountView.as_view()),
    url(r'^mobiles/(?P<mobile>1[3-9]\d{9})/count/$',views.MobileCountView.as_view()),

    url(r'^login/$', views.LoginView.as_view(), name="login"),
    url(r'^logout/$', views.LogoutView.as_view(), name="logout"),
    url(r'^center/$', views.UserCenterView.as_view(), name="center"),

    url(r'^emails/$', views.EmailView.as_view(), name="email"),
    url(r'^email_active/$', views.EmailActiveView.as_view(), name="email_active"),


    url(r'^addresses/$', views.AddressView.as_view(), name="address"),
    url(r'^addresses/create/$', views.CreateAddressView.as_view(), name="createaddress"),
    url(r'^addresses/(?P<address_id>\d+)/$', views.UpdateAddresssView.as_view(), name="updateaddress"),
]
